<#macro sshdXqXmJs>
<script>
function editsshdzxqXM(artType,id,type) {
	window.open("matchManager.do?"+type+"&artType="+artType+"&sshdId=${matchProject.id!}&matchProArticleId=" + id);
}
<#if user?? && (user.linkType == "zzh")> <!--参赛和子帐号-->
function submitMatchProArticle(checkBoxName) {
	var ids = ""; 
	var idArray = [];
	$('input[name="'+checkBoxName+'"]:checked').each(function(){ 
		ids += $(this).val() +",";
		idArray.push($(this).val());
	}); 
	if(ids == "") {
		$.alert(ids.length==0 ?'你还没有选择任何内容！':ids); 
		return;
	} else if(idArray.length > 1) {
		$.alert("请选择一个参赛项目进行提交。"); 
		return;
	}
	$.confirm({
    title: '提示',
    content: '你确认要提交吗?',
    confirm: function(){
		$.ajax({
		     type: 'POST',
		     url: "matchProArticle.do?submitMatchProArticleItems",
		     dataType : 'json',  
		     data: {ids:ids},
		     success: function(data) {
		     	alertMessage(data,true,null);
	         },
     	    error:function(data,textstatus){
     	    	errorMessage();
           }  
		  });
    },
    cancel: function(){
    }
});
}
</#if>
</script>


</#macro>